﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CoyoEden.Web.Controls;
using System.Text;

public partial class Views_TopicComments : TopicViewBase
{
	public string TopicViewPath { get; set; }
	public string TopicTagsStr { get; set; }
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!Page.IsPostBack)
		{
			TopicViewPath = GetViewPath("TopicView");
			if (TheTopic.Tags.Count > 0) {
				StringBuilder tempStr = new StringBuilder();
				TheTopic.Tags.ForEach(item => {
					tempStr.AppendFormat("{0},",item);
				});
				TopicTagsStr = tempStr.ToString();
			}
			if (Page.User.IsInRole("administrators")) {
				phActions.Visible = true;
			}
		}
	}
}
